
public class Methods {

	public Methods() {
	}
	
	public static double ordinaryFee(int numberOfDaysBorrowed,int numberOfDaysBorrowedAllowed, boolean VIP) {
        double regulary = 0.5 * numberOfDaysBorrowed;
        if (numberOfDaysBorrowed > numberOfDaysBorrowedAllowed)
            regulary = 0.5 * numberOfDaysBorrowedAllowed;
        if (VIP == true)
            regulary = regulary / 100 * 80;
        return regulary;
    }
	
	public static double penalty(int numberOfDaysBorrowed,int numberOfDaysBorrowedAllowed) {
        double kazna = 0;
        if (numberOfDaysBorrowed > numberOfDaysBorrowedAllowed)
            kazna = numberOfDaysBorrowed - numberOfDaysBorrowedAllowed;
        return kazna;
    }
	
	public static double totalFee(double regulary, double kazna) {
        return regulary + kazna;
    }
	
	
}
